# Find IdaPro's path on Windows platform for use with install
# this module will try search the registry and then some 
# normally used directory to seach for ida.key file that
# not change on every platform: IDAPRO_BINPATH

if(NOT __IDA_BINPATH__)
  set(__IDA_BINPATH__ TRUE)
  if(WIN32)
    find_path(IDA_BINPATH ida.key
                HINTS "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\IDA Pro_is1;InstallLocation]"
		      "d:/idacurr"
		      "e:/bintools/idacurr"
		      "d:/bintools/idacurr"
		)
    #message(STATUS "IDABINPATH is : ", ${IDA_BINPATH})
  else()

  endif()
endif()

